package edu.thu.studio.ormdesigner.model.diagram.node;

import java.util.ArrayList;
import java.util.List;

import edu.thu.studio.ormdesigner.model.ObjectSet;

public class NodeSet extends ObjectSet<Node> {
    
    private static final long serialVersionUID = 5031218030308698231L;
    
    public List<Node> filterByRefId(String refId) {
        List<Node> nodeList = new ArrayList<Node>();
        for (Node object : objectList) {
            if (refId.equalsIgnoreCase(object.getRefId())) {
                nodeList.add(object);
            }
        }
        return nodeList;
        
    }
    
}
